package data.nanjing.expo.models.domain.dto.exhibition;

import data.nanjing.expo.models.domain.exhibition.ExhibitionHistory;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 上传展览历史
 *
 * @author ChanJi
 * @create 2018-06-30 23:42
 **/
public class ExpoHistoryDto {
    @NotNull(message = "展会id不能为空")
    private Integer expoId;
    @NotNull(message = "展会历史不能为空")
    @Valid
    private List<ExhibitionHistory> expoHistory;

    public Integer getExpoId() {
        return expoId;
    }

    public void setExpoId(Integer expoId) {
        this.expoId = expoId;
    }

    public List<ExhibitionHistory> getExpoHistory() {
        return expoHistory;
    }

    public void setExpoHistory(List<ExhibitionHistory> expoHistory) {
        this.expoHistory = expoHistory;
    }

    @Override
    public String toString() {
        return "ExpoHistoryDto{" +
                "expoId=" + expoId +
                ", expoHistory=" + expoHistory +
                '}';
    }
}
